package com.xsprite.managesys.servlet.gm;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.game.gm.config.GMComm;
import com.xsprite.managesys.service.GMCommandManager;
import com.xsprite.managesys.servlet.BaseServlet;

/**
 * Servlet implementation class ToGMServlet
 */
public class ToGMServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		super.service(req, resp);
		List<GMComm> gmComms = GMCommandManager.getInstance().getGMComms();
		req.setAttribute("gmComms", gmComms);
		forwardTo("/view/gm/gm.jsp");
	}
}
